package com.ruoyi.common.core.domain.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import javax.validation.constraints.Min;
import javax.validation.constraints.Size;

/**
 * 机构学生信息对象 zx_student
 *
 * @author ruoyi
 * @date 2021-05-26
 */
public class Student extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 学生标识ID */
    private Long stuId;

    /** 家长id（小程序用户id） */
    @Excel(name = "家长id", readConverterExp = "小=程序用户id")
    private Long suId;

    /** 学生姓名 */
    @Excel(name = "学生姓名")
    private String stuName;

    /** 学生备注 */
    @Excel(name = "学生备注")
    private String stuRemark;

    /** 学生年级 */
    @Excel(name = "学生年级")
    private Long stuGrade;

    /** 学生所在学校 */
    @Excel(name = "学生所在学校")
    private String stuSchool;

    /** 学生年纪 */
    @Excel(name = "学生年纪")
    @Size(min = 1,max = 50, message = "学生年龄有点大应该在50以内")
    private String stuAge;

    /** 学生性别 */
    @Excel(name = "学生性别")
    private String stuGender;

    public void setStuId(Long stuId)
    {
        this.stuId = stuId;
    }

    public Long getStuId()
    {
        return stuId;
    }
    public void setSuId(Long suId)
    {
        this.suId = suId;
    }

    public Long getSuId()
    {
        return suId;
    }
    public void setStuName(String stuName)
    {
        this.stuName = stuName;
    }

    public String getStuName()
    {
        return stuName;
    }
    public void setStuRemark(String stuRemark)
    {
        this.stuRemark = stuRemark;
    }

    public String getStuRemark()
    {
        return stuRemark;
    }
    public void setStuGrade(Long stuGrade)
    {
        this.stuGrade = stuGrade;
    }

    public Long getStuGrade()
    {
        return stuGrade;
    }
    public void setStuSchool(String stuSchool)
    {
        this.stuSchool = stuSchool;
    }

    public String getStuSchool()
    {
        return stuSchool;
    }
    public void setStuAge(String stuAge)
    {
        this.stuAge = stuAge;
    }

    public String getStuAge()
    {
        return stuAge;
    }
    public void setStuGender(String stuGender)
    {
        this.stuGender = stuGender;
    }

    public String getStuGender()
    {
        return stuGender;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("stuId", getStuId())
                .append("suId", getSuId())
                .append("stuName", getStuName())
                .append("stuRemark", getStuRemark())
                .append("stuGrade", getStuGrade())
                .append("stuSchool", getStuSchool())
                .append("stuAge", getStuAge())
                .append("stuGender", getStuGender())
                .toString();
    }
}
